import pytest
from common import log_set
from common import send_mail
import os
if __name__ == '__main__':
    log_set()

    pytest.main(['-s','A3mall.py',"--alluredir=./报告数据","--clean-alluredir"])
    os.system("allure generate ./报告数据 -o ./测试报告 -clean")
    send_mail(['log.log','./测试报告/index.html'])

